<?php
use Yii;
//Yii::$app->session['image'] = $_FILES['Addnews']['name'];
$upload = './upload';
$uploads = $upload.'/'.$_FILES['Addnews']['name'];
move_uploaded_file($_FILES['Addnews']['tmp_name'],$uploads);
echo json_encode($uploads);
